<?php
//防止乱码
header("content-type:text/html;charset=utf8");
//引入文件
include "pdoclass.php";
//实例化
$Db = new Db("1705a","root","root");
//查询单条数据
//var_dump($Db->getOne("user"));
//查询多条数据
//var_dump($Db->getAll("user"));
//添加数据
//var_dump($Db->add("user",['user_name'=>"赵六",'user_pwd'=>123]));
//删除数据
//var_dump($Db->del("user","id=4"));
//修改数据
//var_dump($Db->save("user",['user_name'=>111],"id=3"));